﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Commons.Entity;
using System.ComponentModel.DataAnnotations;

namespace Background.Core.Entity
{
    /// <summary>
    /// Linq原生态类型的派生类，用来临时保存结果集
    /// </summary>
    public class WebManageUsers_Ext : WebManageUsers { }

    /// <summary>
    /// 对Linq原生态类型的扩展
    /// </summary>
    [MetadataType(typeof(WebManageUsers_Meta))]
    public partial class WebManageUsers : EntityBase
    {
        /// <summary>
        /// 实体集合：导航属性为集合时，不能直接写为List，它会有类型转换错误，必须是IEnumerable接口类型
        /// </summary>
        public IEnumerable<WebManageUser_WebManageRoles> WebManageUser_WebManageRoles_Extend { get; set; }
        /// <summary>
        /// 实体
        /// </summary>
        public WebDepartments WebDepartments_Extend { get; set; }
    }

    public partial class WebManageUsers_Meta
    {
        /// <summary>
        /// ManageUserID
        /// </summary>
        public int ManageUserID { get; set; }
        /// <summary>
        /// LoginName
        /// </summary>
        [Required(ErrorMessage = "请填写用户名")]
        [Display(Name = "用户名")]
        public string LoginName { get; set; }
        /// <summary>
        /// Password
        /// </summary>
        [Required(ErrorMessage = "请填写密码")]
        [Display(Name = "密码")]
        public string Password { get; set; }
        /// <summary>
        /// RealName
        /// </summary>
        [Required(ErrorMessage = "请填写真实姓名")]
        [Display(Name = "姓名")]
        public string RealName { get; set; }
        /// <summary>
        /// Gender
        /// </summary>
        [Display(Name = "性别")]
        [Required(ErrorMessage = "请填写性别")]
        public string Gender { get; set; }
        /// <summary>
        /// Phone
        /// </summary>
        [Display(Name = "电话")]
        public string Phone { get; set; }
        /// <summary>
        /// Mobile
        /// </summary>
        [Display(Name = "手机")]
        public string Mobile { get; set; }
        /// <summary>
        /// Email
        /// </summary>
        [Display(Name = "邮件")]
        public string Email { get; set; }
        /// <summary>
        /// AvatarUrl
        /// </summary>
        [Display(Name = "头像")]
        public string AvatarUrl { get; set; }
        /// <summary>
        /// QQ
        /// </summary>
        public string QQ { get; set; }
        /// <summary>
        /// MSN
        /// </summary>
        public string MSN { get; set; }
        /// <summary>
        /// Rtx
        /// </summary>
        public string Rtx { get; set; }
        /// <summary>
        /// Birthday
        /// </summary>
        public string Birthday { get; set; }
        /// <summary>
        /// Description
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// DepartmentID
        /// </summary>
        public int DepartmentID { get; set; }
        /// <summary>
        /// CreateDate
        /// </summary>
        public System.DateTime CreateDate { get; set; }
        /// <summary>
        /// UpdateDate
        /// </summary>
        public Nullable<System.DateTime> UpdateDate { get; set; }
        /// <summary>
        /// Operator
        /// </summary>
        public string Operator { get; set; }
        /// <summary>
        /// Status
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// IntroductionURL
        /// </summary>
        public string IntroductionURL { get; set; }
    }
}
